import request from '@/utils/request'

// 调用登录接口
export const loginAPI = (data) => {
  return request.post('/sys/login', data)
}

// 封装获取用户信息接口
export const getUserinfoAPI = () => {
  return request.post('/sys/profile')
}

// 封装获取用户信息接口2   包含头像
export const getUserAPI2 = (id) => {
  return request.get(`/sys/user/${id}`)
}
